#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:fei time:2019/6/21 19:55

# 9*9乘法表
# 1*1=1
# 1*2=2 2*2=4
# 1*3=3 2*3=6 3*3=9

for i in range(1, 10):
    for j in range(1, i + 1):
        print("{}*{}={:2d}".format(j, i, i * j), end=" ")
        # print("{}*{}={:2d}".format(j, i, i * j), end=" ")
    print("")

# i=1 j=1
# i=2 j=2
# i=3 j=3
# print("{0:04d}-{1:08b}-{0:03o}-{0:02x}-{0:05X}".format(10, 15))

